package edu.mtu.citizenscience.cs.sdk.login;

/**
 * @author Corbin Uselton <corbinu@cwuselto@mtu.edu>
 * @copyright (c) 2012 MichiganTech <http://www.mtu.edu>
 * @since 1.0
 * 
 * Callback for handling the user login
 */
public interface CitsciLoginCallback {

	/**
	 * Called on successful login
	 * 
	 * @param login - UserLogin - the user's username and password
	 * @return void
	 */
	public void loginSuccess(UserLogin login);
	
	/**
	 * Called on login error
	 * 
	 * @param error - CitsciLoginError - enum for specific error
	 * @return void
	 */
	public void loginError(CitsciLoginError error);
	
	/**
	 * Called on error message from the login
	 * 
	 * @param message - String - The error message
	 * @return void
	 */
	public void loginErrorMessage(String message);
	
}
